package com.china08.yxyapi.repository.db.huixue.comm;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.china08.yxyapi.entity.db.questionbank.YxyQuesbankBookContentsKnowledge;

public interface YxyQuesbankBookContentsKnowledgeRepository
        extends JpaRepository<YxyQuesbankBookContentsKnowledge, String> {
    @Query(value = "select t1.knowledgeId from YxyQuesbankBookContentsKnowledge t1 where t1.bookContentId in ?1 group by t1.knowledgeId")
    List<String> findKnowledgeIdByBookContentIdIn(List<String> bookContentId);
}
